#ifndef _YOSHI_H_
    #define _YOSHI_H_
 
#include <SDL.h>
#include "CSurface.h"

#define DIR_RIGHT 1
#define DIR_LEFT  2
#define DIR_STOP  0
 
class Yoshi {
    private:
        int     CurrentFrame;
        int     FrameInc;
 
    private:
        int     anim_FrameRate; //Milliseconds
        long    anim_OldTime;

    private:
        int     move_FrameRate; //Milliseconds
        long    move_OldTime;

		SDL_Surface*    Yoshi_bmp;
		int		direction;
		
		int animMoveRatio;  
 
    public:
        int     MaxFrames;
		int     Yoshi_x_pos;
		int     Yoshi_y_pos;

        void SetFrameRate(int Rate);
 
        void SetCurrentFrame(int Frame);

		void SetDirection(int dir);
 

		void OnRender(SDL_Surface *surface);

		void OnLoop();

		void Init(int x_pos,int ypos);

		Yoshi();

};
 
#endif